<html>
    <head>
        <meta charset="utf-8">
        <style>
            #header{
                width:100%;
                height:100px;
                line-height:100px;
                background:#3cc;
                text-align:center;
                font-size:45px;
                color:white;
            }
            #news{
                line-height:30px;
            }
        </style>
    </head>
    <body>
        <div id="header">
            baidu news
        </div>
        <div id="news">
            <foreach name="data" item="v">
                <a href="{:U("index/detail", ["id"=>$v["id"]])}">{$v.title}</a><br>
            </foreach>
        </div>
    </body>
</html>
